<?php
	$id = $_GET['id'];
?>
<html>
<head>
	<title>Image from user <?php echo($id+1); ?></title>
	<style type="text/css">
		img.center {
			display: block;
			margin-left: auto;
			margin-right: auto;
		}
		.titleLine {
			font-family: "Helvetica";
			text-align: center;
			margin: 0px;
			padding: 0px;
			background-image: url(./backTitle.png);
			background-repeat: repeat-x;
		}
	</style>
	<script language="javascript" type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js">
	</script>
	<script type="text/javascript">
	function update () {
		var d = new Date();
		var imgName = "#image";
		$(imgName).attr("src", './pic/<?php echo ($id) ?>'+"?"+d.getTime()).error(function() {
			$(imgName).attr("src", "./placeholder.png");
		});
		setTimeout(update, 2000);
	};
	</script>
</head>
<body bgcolor="d7d7d7" onLoad="javascript:update();">
	<div class="titleLine"> <img src="./Title.png"><br><br><br><br>
		Image from user <?php echo($id+1); ?>
	</div><br>
	<img class="center" id="image" src='./pic/<?php echo($id); ?>'>
</body>
</html>
